package com.wwj.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wwj.springboot.entity.CmfzAdmin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wwj
 */
@Mapper
public interface CmfzAdminMapper extends BaseMapper<CmfzAdmin> {

    CmfzAdmin selectByUserNameAndPassword(CmfzAdmin admin);




    int selectCounts(@Param("name") String userName);

    List<CmfzAdmin> selectByPage(@Param("page") int page, @Param("limit") int limit, @Param("name") String  username);
}